#!/usr/bin/env python

from setuptools import setup, Extension, find_packages
import sys

'''
if sys.platform == 'win32':
    print "Can't install on win32"
    # raise some error?
    sys.exit(1)
else:
'''
ext_modules = [
    Extension(
      # taskeval.jrun
      'jrun',
      [
        'jrun/jrun.c',
        'jrun/options.c',
        'jrun/names.c',
      ],
      #libraries = [ 'runlib32-static', 'advapi32', 'psapi', 'userenv' ],
      extra_compile_args = ['-Os'],
    ),
]

requirements = ['ctypes']

setup(
    name = 'taskeval',
    version = '0.66dev',
    packages = find_packages(),
    ext_modules = ext_modules,
    package_data = {
      'taskeval': [ '*.xml' ],
    },
    scripts = [
        "evaluator.py",
    ],
    zip_safe = False,
    #data_files = [
    #  ( "config", ["files..."] ),
    #],
    install_requires = requirements,
    author = "Dan Sanduleac",
    author_email = "sanduleac.dan@gmail.com",
    description = "Automatic evaluator for programming contest tasks",
    license = "GPL-v3",
    url = "http://taskeval.googlecode.com/",
    platforms = ["Linux", "Solaris", "Mac OS-X", "Unix"], # Windows
)
